package com.vito.dcs.water.waterMonitor.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.vito.base.model.DataGrid;
import com.vito.dcs.asphalt.asphaltGradation.model.AsphaltGradationModel;
import com.vito.dcs.water.waterMonitor.dao.AlarmWaterMapper;
import com.vito.dcs.water.waterMonitor.model.AlarmWaterModel;
import com.vito.dcs.water.waterMonitor.service.AlarmWaterService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 水稳摊铺 监控接口
 */
@Service
public class AlarmWaterServiceImpl implements AlarmWaterService {

    @Autowired
    AlarmWaterMapper alarmWaterMapper;

    @Override
    public DataGrid<AlarmWaterModel> queryAlarmWaterModelList(AlarmWaterModel alarmWaterModel) {
        DataGrid<AlarmWaterModel> dg = new DataGrid<AlarmWaterModel>();
        dg.setRows(alarmWaterMapper.queryAlarmWaterModelListByPage(alarmWaterModel));
        dg.setTotal(alarmWaterModel.getTotal());
        return dg;
    }
}
